//子类 卡车
public class Truck extends Automobile{
    private String type;
    private int day;

    // public Truck(){}
    // public Truck(String type,int day){
    //     super(type,day);
    // }
   

    //型号
    public void setType(String type){
        this.type = type;
    }
    public String getType(){
        return type;
    }

    public void show(){
        System.out.println(getType());
        System.out.println(getBrand()+getPlateNumber()+getRent(day));
    }
}